<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元梦之星 · 我们的游戏回忆</title>
    <style>
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            color: #fff;
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        /* 星空背景效果 */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .star {
            position: absolute;
            background-color: #fff;
            border-radius: 50%;
            animation: twinkle var(--duration) infinite ease-in-out;
        }
        
        @keyframes twinkle {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 1; }
        }
        
        /* 页面容器 */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* 页眉 */
        header {
            text-align: center;
            padding: 40px 0;
            position: relative;
        }
        
        .logo {
            font-size: 3rem;
            font-weight: bold;
            background: linear-gradient(to right, #ff6b6b, #4ecdc4);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 10px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #a1a1a1;
            margin-bottom: 20px;
        }
        
        /* 角色展示区 */
        .character-section {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            margin: 40px 0;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        }
        
        .character {
            text-align: center;
            margin: 15px;
            transition: transform 0.3s;
        }
        
        .character:hover {
            transform: translateY(-10px);
        }
        
        .character-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #4ecdc4;
            box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
        }
        
        .character-name {
            margin-top: 10px;
            font-size: 1.2rem;
            color: #4ecdc4;
        }
        
        /* 回忆时间线 */
        .timeline {
            position: relative;
            margin: 50px 0;
            padding-left: 30px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 2px;
            background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
        }
        
        .memory {
            position: relative;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .memory:hover {
            transform: translateX(10px);
            box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
        }
        
        .memory::before {
            content: '';
            position: absolute;
            top: 20px;
            left: -38px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #ff6b6b;
            border: 3px solid #4ecdc4;
        }
        
        .memory-date {
            color: #ff6b6b;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .memory-content {
            margin-bottom: 10px;
        }
        
        .memory-images {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        
        .memory-image {
            width: 150px;
            height: 100px;
            object-fit: cover;
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .memory-image:hover {
            transform: scale(1.05);
        }
        
        /* 祝福语 */
        .wishes {
            text-align: center;
            margin: 60px 0;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
        }
        
        .wishes h2 {
            margin-bottom: 20px;
            color: #4ecdc4;
        }
        
        /* 页脚 */
        footer {
            text-align: center;
            padding: 20px;
            color: #a1a1a1;
            font-size: 0.9rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .logo {
                font-size: 2rem;
            }
            
            .character-avatar {
                width: 80px;
                height: 80px;
            }
            
            .memory-image {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 星空背景 -->
    <div class="stars" id="stars"></div>
    
    <div class="container">
        <header>
            <h1 class="logo">元梦之星</h1>
            <p class="subtitle">我们的游戏回忆纪念册</p>
        </header>
        
        <section class="character-section">
            <div class="character">
                <img src="avatar1.jpg" alt="你的角色" class="character-avatar">
                <p class="character-name">[你的游戏ID]</p>
            </div>
            <div class="character">
                <img src="avatar2.jpg" alt="她的角色" class="character-avatar">
                <p class="character-name">[她的游戏ID]</p>
            </div>
        </section>
        
        <section class="timeline">
            <h2 style="color: #ff6b6b; margin-bottom: 30px; text-align: center;">✨ 我们的回忆时间线 ✨</h2>
            
            <div class="memory">
                <div class="memory-date">2023年12月</div>
                <div class="memory-content">
                    我们在「星空地图」第一次相遇并组队，虽然刚开始配合不太默契，但还是成功完成了任务！
                </div>
                <div class="memory-images">
                    <img src="memory1.jpg" alt="回忆1" class="memory-image">
                </div>
            </div>
            
            <div class="memory">
                <div class="memory-date">2024年1月</div>
                <div class="memory-content">
                    一起挑战了困难模式，经过多次尝试终于通关，解锁了专属双人成就！
                </div>
                <div class="memory-images">
                    <img src="memory2.jpg" alt="回忆2" class="memory-image">
                    <img src="memory3.jpg" alt="回忆3" class="memory-image">
                </div>
            </div>
            
            <div class="memory">
                <div class="memory-date">2024年3月</div>
                <div class="memory-content">
                    你教我完成了那个我一直过不去的跳跃关卡，我们还解锁了特别的双人舞蹈动作。
                </div>
                <div class="memory-images">
                    <img src="memory4.jpg" alt="回忆4" class="memory-image">
                </div>
            </div>
            
            <div class="memory">
                <div class="memory-date">2024年6月</div>
                <div class="memory-content">
                    你初中毕业了！虽然游戏时间可能会变少，但这些回忆会一直保留在这里。
                </div>
            </div>
        </section>
        
        <section class="wishes">
            <h2>毕业快乐！</h2>
            <p>感谢在元梦之星里相遇的每一刻，愿你在新的旅程中继续闪耀如星！</p>
            <p>无论未来如何，这里永远保留着我们的游戏回忆~</p>
        </section>
        
        <footer>
            <p>Made with ❤️ for [她的名字或ID]</p>
            <p>© 2024 元梦之星回忆站</p>
        </footer>
    </div>
    
    <script>
        // 创建星空背景
        function createStars() {
            const starsContainer = document.getElementById('stars');
            const starsCount = 100;
            
            for (let i = 0; i < starsCount; i++) {
                const star = document.createElement('div');
                star.classList.add('star');
                
                // 随机大小
                const size = Math.random() * 3;
                star.style.width = `${size}px`;
                star.style.height = `${size}px`;
                
                // 随机位置
                star.style.left = `${Math.random() * 100}%`;
                star.style.top = `${Math.random() * 100}%`;
                
                // 随机闪烁时间
                star.style.setProperty('--duration', `${2 + Math.random() * 3}s`);
                
                starsContainer.appendChild(star);
            }
        }
        
        // 图片点击放大效果
        function setupImageZoom() {
            const images = document.querySelectorAll('.memory-image');
            
            images.forEach(img => {
                img.addEventListener('click', function() {
                    const overlay = document.createElement('div');
                    overlay.style.position = 'fixed';
                    overlay.style.top = '0';
                    overlay.style.left = '0';
                    overlay.style.width = '100%';
                    overlay.style.height = '100%';
                    overlay.style.backgroundColor = 'rgba(0,0,0,0.9)';
                    overlay.style.display = 'flex';
                    overlay.style.justifyContent = 'center';
                    overlay.style.alignItems = 'center';
                    overlay.style.zIndex = '1000';
                    overlay.style.cursor = 'zoom-out';
                    
                    const enlargedImg = document.createElement('img');
                    enlargedImg.src = this.src;
                    enlargedImg.style.maxWidth = '90%';
                    enlargedImg.style.maxHeight = '90%';
                    enlargedImg.style.borderRadius = '10px';
                    enlargedImg.style.boxShadow = '0 0 20px rgba(255,255,255,0.3)';
                    
                    overlay.appendChild(enlargedImg);
                    document.body.appendChild(overlay);
                    
                    overlay.addEventListener('click', function() {
                        document.body.removeChild(overlay);
                    });
                });
            });
        }
        
        // 页面加载完成后执行
        window.addEventListener('DOMContentLoaded', function() {
            createStars();
            setupImageZoom();
            
            // 添加点击特效
            document.addEventListener('click', function(e) {
                if (e.target.tagName !== 'IMG') {
                    const sparkle = document.createElement('div');
                    sparkle.style.position = 'absolute';
                    sparkle.style.left = `${e.pageX}px`;
                    sparkle.style.top = `${e.pageY}px`;
                    sparkle.style.width = '10px';
                    sparkle.style.height = '10px';
                    sparkle.style.borderRadius = '50%';
                    sparkle.style.backgroundColor = '#fff';
                    sparkle.style.boxShadow = '0 0 10px 2px #4ecdc4';
                    sparkle.style.pointerEvents = 'none';
                    sparkle.style.transform = 'scale(0)';
                    sparkle.style.animation = 'sparkle 0.5s forwards';
                    
                    document.body.appendChild(sparkle);
                    
                    setTimeout(() => {
                        document.body.removeChild(sparkle);
                    }, 500);
                }
            });
            
            // 添加CSS动画
            const style = document.createElement('style');
            style.textContent = `
                @keyframes sparkle {
                    0% { transform: scale(0); opacity: 1; }
                    100% { transform: scale(3); opacity: 0; }
                }
            `;
            document.head.appendChild(style);
        });
    </script>
</body>
</html>